package com.example.demo.entity.mybatisplus;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 监听服务表
 * </p>
 *
 * @author xzw
 * @since 2021-01-18
 */
@TableName("tb_server_listener")
public class TbServerListener extends Model<TbServerListener> {

    private static final long serialVersionUID = 1L;
    
    @TableId(type=IdType.ASSIGN_UUID)
    private String key_id;
    /**
     * 服务名称
     */
    private String server_name;
    /**
     * 服务IP
     */
    private String server_ip;
    /**
     * 服务端口
     */
    private Integer server_port;
    /**
     * 服务状态  0异常  1正常
     */
    private String server_status;
    /**
     * 状态改变时间
     */
    private Date update_time;
    /**
     * 添加服务的时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date create_time;
    /**
     * 响应时间
     */
    private Integer resp_time;
    /**
     * 超时时间/ms
     */
    private Integer connect_out_time;
    /**
     * 网络域
     */
    private String net_region;
    
    
    public String getKey_id() {
        return key_id;
    }

    public void setKey_id(String key_id) {
        this.key_id = key_id;
    }

    public String getServer_name() {
        return server_name;
    }

    public void setServer_name(String server_name) {
        this.server_name = server_name;
    }

    public String getServer_ip() {
        return server_ip;
    }

    public void setServer_ip(String server_ip) {
        this.server_ip = server_ip;
    }

    public Integer getServer_port() {
        return server_port;
    }

    public void setServer_port(Integer server_port) {
        this.server_port = server_port;
    }

    public String getServer_status() {
        return server_status;
    }

    public void setServer_status(String server_status) {
        this.server_status = server_status;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Integer getResp_time() {
        return resp_time;
    }

    public void setResp_time(Integer resp_time) {
        this.resp_time = resp_time;
    }

    public Integer getConnect_out_time() {
        return connect_out_time;
    }

    public void setConnect_out_time(Integer connect_out_time) {
        this.connect_out_time = connect_out_time;
    }

    public String getNet_region() {
        return net_region;
    }

    public void setNet_region(String net_region) {
        this.net_region = net_region;
    }

    @Override
	public Serializable pkVal() {
        return this.key_id;
    }

    @Override
    public String toString() {
        return "TbServerListener{" +
        ", key_id=" + key_id +
        ", server_name=" + server_name +
        ", server_ip=" + server_ip +
        ", server_port=" + server_port +
        ", server_status=" + server_status +
        ", update_time=" + update_time +
        ", create_time=" + create_time +
        ", resp_time=" + resp_time +
        ", connect_out_time=" + connect_out_time +
        ", net_region=" + net_region +
        "}";
    }
}
